package com.yuelu.community.community.dao;

import com.yuelu.community.community.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * ClassName: UserMapper
 * Description:
 *
 * @Author 文勇
 * @Create 2024/8/11 23:20
 * @Version 3.0
 */
@Mapper
public interface UserMapper {
    //根据id查询用户
    User selectById(int id);
    //根据名称查询用户
    User selectByName(String name);
    User selectByEmail(String email);
    int insertUser(User user);
    int updateStatus(int id,int status);
    int updateHeader(int id,String headerUrl);

    int updatePassword(int id, String password);
}
